<script>
// import weex from "weex-vue-render";
export default {
  onLaunch: function () {
    // this.$store.dispatch("connectSocket");
    const domModule = weex.requireModule("dom");
    domModule.addRule("fontFace", {
      fontFamily: "iconfont",
      src: "url('https://at.alicdn.com/t/c/font_3906443_qpcj283stbi.ttf')",
    });
    //监听底部导航中间凸起按钮
    uni.onTabBarMidButtonTap(() => {
      uni.navigateTo({
        url: "/pages/create-live/create-live",
      });
    });
    // this.$store.dispatch("initUser");
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style>
/*每个页面公共css */
/* 公共样式 */
@import url("./common/free.css");
/* 主题样式 */
@import url("./common/common.css");
/* #ifndef APP-PLUS-NVUE*/
@import url("./assets/style/icon.css");
/* endif */
</style>
